ga.view.streaming.showroom
Class Wall

java.lang.Object
  extended by com.jme3.scene.Mesh
      extended by com.jme3.scene.shape.AbstractBox
          extended by ga.view.streaming.showroom.Wall
All Implemented Interfaces:
com.jme3.export.Savable, java.lang.Cloneable

public class Wall
extends com.jme3.scene.shape.AbstractBox

This is special type of a box where the walls become invisible when viewed from outside. The code is adapted from Box and slightly changed.

Since:
12.08.2012
Author:
Stephan Dreyer

Nested Class Summary
 
Nested classes/interfaces inherited from class com.jme3.scene.Mesh
com.jme3.scene.Mesh.Mode
 
Field Summary
private static short[] GEOMETRY_INDICES_DATA
           
private static float[] GEOMETRY_NORMALS_DATA
           
private static float[] GEOMETRY_TEXTURE_DATA
           
 
Fields inherited from class com.jme3.scene.shape.AbstractBox
center, xExtent, yExtent, zExtent
 
Constructor Summary
Wall()
          Empty constructor for serialization only.
Wall(float x, float y, float z)
          Creates a new box.
Wall(com.jme3.math.Vector3f center, float x, float y, float z)
          Creates a new box.
Wall(com.jme3.math.Vector3f min, com.jme3.math.Vector3f max)
          Constructor instantiates a new Box object.
 
Method Summary
 Wall clone()
          Creates a clone of this box.
protected  void duUpdateGeometryIndices()
           
protected  void duUpdateGeometryNormals()
           
protected  void duUpdateGeometryTextures()
           
protected  void duUpdateGeometryVertices()
           
 
Methods inherited from class com.jme3.scene.shape.AbstractBox
computeVertices, getCenter, getXExtent, getYExtent, getZExtent, read, updateGeometry, updateGeometry, updateGeometry, write
 
Methods inherited from class com.jme3.scene.Mesh
clearBuffer, cloneForAnim, collideWith, createCollisionData, deepClone, extractVertexData, generateBindPose, getBound, getBuffer, getBufferList, getBuffers, getElementLengths, getFloatBuffer, getId, getIndexBuffer, getIndicesAsList, getLineWidth, getLodLevel, getMaxNumWeights, getMode, getModeStart, getNumLodLevels, getPointSize, getShortBuffer, getTriangle, getTriangle, getTriangle, getTriangleCount, getTriangleCount, getVertexCount, prepareForAnim, scaleTextureCoordinates, setBound, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setDynamic, setElementLengths, setId, setInterleaved, setLineWidth, setLodLevels, setMaxNumWeights, setMode, setModeStart, setPointSize, setStatic, setStreamed, updateBound, updateCounts
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GEOMETRY_INDICES_DATA

private static final short[] GEOMETRY_INDICES_DATA

GEOMETRY_NORMALS_DATA

private static final float[] GEOMETRY_NORMALS_DATA

GEOMETRY_TEXTURE_DATA

private static final float[] GEOMETRY_TEXTURE_DATA
Constructor Detail

Wall

public Wall(float x,
            float y,
            float z)
Creates a new box.

The box has a center of 0,0,0 and extends in the out from the center by the given amount in each direction. So, for example, a box with extent of 0.5 would be the unit cube.

Parameters:
x - the size of the box along the x axis, in both directions.
y - the size of the box along the y axis, in both directions.
z - the size of the box along the z axis, in both directions.

Wall

public Wall(com.jme3.math.Vector3f center,
            float x,
            float y,
            float z)
Creates a new box.

The box has the given center and extends in the out from the center by the given amount in each direction. So, for example, a box with extent of 0.5 would be the unit cube.

Parameters:
center - the center of the box.
x - the size of the box along the x axis, in both directions.
y - the size of the box along the y axis, in both directions.
z - the size of the box along the z axis, in both directions.

Wall

public Wall(com.jme3.math.Vector3f min,
            com.jme3.math.Vector3f max)
Constructor instantiates a new Box object.

The minimum and maximum point are provided, these two points define the shape and size of the box but not it’s orientation or position. You should use the #setLocalTranslation() and #setLocalRotation() methods to define those properties.

Parameters:
min - the minimum point that defines the box.
max - the maximum point that defines the box.

Wall

public Wall()
Empty constructor for serialization only. Do not use.

Method Detail

clone

public Wall clone()
Creates a clone of this box.

The cloned box will have ‘_clone’ appended to it’s name, but all other properties will be the same as this box.

Overrides:
clone in class com.jme3.scene.Mesh
Returns:
A cloned wall that is equal to this wall.

duUpdateGeometryIndices

protected void duUpdateGeometryIndices()
Specified by:
duUpdateGeometryIndices in class com.jme3.scene.shape.AbstractBox

duUpdateGeometryNormals

protected void duUpdateGeometryNormals()
Specified by:
duUpdateGeometryNormals in class com.jme3.scene.shape.AbstractBox

duUpdateGeometryTextures

protected void duUpdateGeometryTextures()
Specified by:
duUpdateGeometryTextures in class com.jme3.scene.shape.AbstractBox

duUpdateGeometryVertices

protected void duUpdateGeometryVertices()
Specified by:
duUpdateGeometryVertices in class com.jme3.scene.shape.AbstractBox